//
//  UIButton+Extension.swift
//  PhotoBrowser
//
//  Created by 游强辉 on 16/4/28.
//  Copyright © 2016年 youqianghui. All rights reserved.
//

import UIKit

extension UIButton {
    convenience init(title : String, bgColor : UIColor, fontSize : CGFloat) {
        self.init()
        self.setTitle(title, forState: .Normal)
        self.backgroundColor = bgColor
        self.titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    }
}
